package ooday02;

public class Student extends Person {
        int stuId;
        String className;
        Student(){}
        Student(String name,int age,String address,String className,int stuId){
            super(name ,age,address);
            this.className=className;
            this.stuId=stuId;
        }
        void study(){
            System.out.println("班级："+className+"学号"+stuId+"名字"+name+"在学习");
        }
        void sayHi(){
            System.out.println("大家好，我的名字是："+name+"，今年"+age+"岁了，我家在"+address+"班级："+className+"学号"+stuId+"名字"+name+"在 hi");
        }

}
